package com.chenhao.springcloud.chenhaodesignservice.pattern.structural.decorator.v2;

/**
 * Description:
 *
 * @author chenhao
 * @date 2020/12/23 11:22
 */
public class SausageDecorator extends AbstractDecorator {
    public SausageDecorator(ABattercake aBattercake) {
        super(aBattercake);
    }
    @Override
    protected  String getDesc(){
        return super.getDesc()+"加一根香肠";
    }
    @Override
    protected  int cost(){
        return  super.cost()+2;
    }
}
